FROM openjdk:8-jdk-alpine
MAINTAINER gaojiayiner@163.com
LABEL version="1.0.0"
RUN mkdir -p /data
ENV WORK_HOME /root
WORKDIR ${WORK_HOME}
ARG JAR_FILE
ENV JVM_OPTS -Xms300m -Xmx300m
COPY target/${JAR_FILE} ${WORK_HOME}/app.jar
EXPOSE 8080
ENTRYPOINT ["sh","-c","java $JVM_OPTS -jar ${WORK_HOME}/app.jar $0 $@"]
CMD ["--server-port=8080","--spring.profiles.active=product"]